﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Gueei.Gallery.Core.Services;

namespace Gueei.Gallery.Web.Services
{
	public class WebUserService:IUserService
	{
		public Core.Entities.User GetCurrentUser()
		{
			if (HttpContext.Current.User.Identity.IsAuthenticated)
			{
				return new Core.Entities.User {Id = HttpContext.Current.User.Identity.Name};
			}
			return null;
		}

		public Core.Entities.User GetUser(string id)
		{
			return new Core.Entities.User {Id = id};
		}
	}
}